package com.wnn.demo.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.xml.soap.Text;
import java.sql.Blob;
import java.util.Date;
import java.util.List;

/**
 * Created by zhou Generator on 2021/10/09
 */
@ApiModel("新闻查询实体类")
@JsonIgnoreProperties(value = {"handler"})
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Newsque {



    //新闻标题
    @ApiModelProperty("新闻标题")
    private String titles;

    //	新闻创建人
    @ApiModelProperty("新闻创建人")
    private String createBy;


    /**
     * 创建时间
     */
    @ApiModelProperty("搜索开始时间")
   @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date startTime;

    //	修改时间
    @ApiModelProperty("搜索结束时间")
    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date endTime;

}
